<?php

/**
 * Copyright 2008 William J. Szerdy Jr.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @author Bill Szerdy <bszerdy@gmail.com>
 *
 * 12.05.2008 - bszerdy : Created.
 *
 */

/* Set version */
define('VERSION_MAJOR', 0);
define('VERSION_MINOR', 1);

/* Set constants */
define('BASE_DIR', '/Users/superfoo/Dropbox/Projects/poker-blinds');
define('CLASS_DIR', BASE_DIR . '/Classes');
define('DATA_DIR', BASE_DIR . '/data');
define('DATA_LOCATION', DATA_DIR . '/blind_data.json');

define('CURRENT_MODE', 'LOCAL_MODE');

/* Include the needed classes */
require_once CLASS_DIR . '/PokerBlind.php';
require_once CLASS_DIR . '/SingleBlind.php';
require_once CLASS_DIR . '/Data.php';

/* Include the utiliy files */
require_once 'functions.php';

if (!isset($_SESSION['blinds']))
	$_SESSION['blinds'] = Data::Load_Data();

define('HIGHEST_LEVEL', count($_SESSION['blinds']));

if (!isset($_SESSION['CURRENT_MODE']))
    $_SESSION['MODE'] = array(
        'LOCAL_MODE' => 'http://localhost:8888/poker-blinds/index.php',
        'REMOTE_MODE' => 'http://www.szerdy.org/poker-blinds/index.php'
    );

?>
